package org.javaymw.springboot.mapper;

import com.github.pagehelper.Page;

import org.apache.ibatis.annotations.Param;
import org.javaymw.springboot.base.SuperMapper;
import org.javaymw.springboot.entity.RoleEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by 赵新国 on 2018/1/31.
 */
public interface RoleMapper extends SuperMapper<RoleEntity> {

    Page<RoleEntity> findRoleByPage(Map<String, Object> columnMap);

    List<Map<String,Object>> getRolesByUserId(@Param("userId") Long userId);
}
